
// MIT License
// 
// Copyright (c) 2009-2017 Luca Piccioni
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
// 
// This file is automatically generated

#pragma warning disable 649, 1572, 1573

// ReSharper disable RedundantUsingDirective
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;

using Khronos;

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable JoinDeclarationAndInitializer

namespace OpenGL
{
	public partial class Gl
	{
		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT0_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT0_QCOM = 0x00000001;

		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT1_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT1_QCOM = 0x00000002;

		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT2_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT2_QCOM = 0x00000004;

		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT3_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT3_QCOM = 0x00000008;

		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT4_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT4_QCOM = 0x00000010;

		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT5_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT5_QCOM = 0x00000020;

		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT6_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT6_QCOM = 0x00000040;

		/// <summary>
		/// [GL] Value of GL_COLOR_BUFFER_BIT7_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint COLOR_BUFFER_BIT7_QCOM = 0x00000080;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT0_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT0_QCOM = 0x00000100;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT1_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT1_QCOM = 0x00000200;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT2_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT2_QCOM = 0x00000400;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT3_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT3_QCOM = 0x00000800;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT4_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT4_QCOM = 0x00001000;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT5_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT5_QCOM = 0x00002000;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT6_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT6_QCOM = 0x00004000;

		/// <summary>
		/// [GL] Value of GL_DEPTH_BUFFER_BIT7_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint DEPTH_BUFFER_BIT7_QCOM = 0x00008000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT0_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT0_QCOM = 0x00010000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT1_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT1_QCOM = 0x00020000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT2_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT2_QCOM = 0x00040000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT3_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT3_QCOM = 0x00080000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT4_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT4_QCOM = 0x00100000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT5_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT5_QCOM = 0x00200000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT6_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT6_QCOM = 0x00400000;

		/// <summary>
		/// [GL] Value of GL_STENCIL_BUFFER_BIT7_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint STENCIL_BUFFER_BIT7_QCOM = 0x00800000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT0_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT0_QCOM = 0x01000000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT1_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT1_QCOM = 0x02000000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT2_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT2_QCOM = 0x04000000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT3_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT3_QCOM = 0x08000000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT4_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT4_QCOM = 0x10000000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT5_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT5_QCOM = 0x20000000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT6_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT6_QCOM = 0x40000000;

		/// <summary>
		/// [GL] Value of GL_MULTISAMPLE_BUFFER_BIT7_QCOM symbol.
		/// </summary>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		[Log(BitmaskName = "GL")]
		public const uint MULTISAMPLE_BUFFER_BIT7_QCOM = 0x80000000;

		/// <summary>
		/// [GL] glStartTilingQCOM: Binding for glStartTilingQCOM.
		/// </summary>
		/// <param name="x">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="y">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="width">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="height">
		/// A <see cref="T:uint"/>.
		/// </param>
		/// <param name="preserveMask">
		/// A <see cref="T:BufferBitQCOM"/>.
		/// </param>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		public static void StartQCOM(uint x, uint y, uint width, uint height, BufferBitQCOM preserveMask)
		{
			Debug.Assert(Delegates.pglStartTilingQCOM != null, "pglStartTilingQCOM not implemented");
			Delegates.pglStartTilingQCOM(x, y, width, height, (uint)preserveMask);
			LogCommand("glStartTilingQCOM", null, x, y, width, height, preserveMask			);
			DebugCheckErrors(null);
		}

		/// <summary>
		/// [GL] glEndTilingQCOM: Binding for glEndTilingQCOM.
		/// </summary>
		/// <param name="preserveMask">
		/// A <see cref="T:BufferBitQCOM"/>.
		/// </param>
		[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
		public static void EndQCOM(BufferBitQCOM preserveMask)
		{
			Debug.Assert(Delegates.pglEndTilingQCOM != null, "pglEndTilingQCOM not implemented");
			Delegates.pglEndTilingQCOM((uint)preserveMask);
			LogCommand("glEndTilingQCOM", null, preserveMask			);
			DebugCheckErrors(null);
		}

		internal static unsafe partial class Delegates
		{
			[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glStartTilingQCOM(uint x, uint y, uint width, uint height, uint preserveMask);

			[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
			[ThreadStatic]
			internal static glStartTilingQCOM pglStartTilingQCOM;

			[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
			[SuppressUnmanagedCodeSecurity]
			internal delegate void glEndTilingQCOM(uint preserveMask);

			[RequiredByFeature("GL_QCOM_tiled_rendering", Api = "gles1|gles2")]
			[ThreadStatic]
			internal static glEndTilingQCOM pglEndTilingQCOM;

		}
	}

}
